<%@page import="servlet.IConstants"%>
<%@page import="domain.User"%>
<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Vélo Paris</title>
<link rel="stylesheet" href="css/page.css">
<link rel="stylesheet" href="css/inscription.css">
<script type="text/javascript" src="javascript.js"></script>
</head>
<body>

<%
		Boolean isUserConnected = (Boolean) session.getAttribute(IConstants.isConnected);
		if (isUserConnected == Boolean.TRUE) {
			
	%>
	<jsp:forward page="pageUser.jsp" />
	<%
		}
	%>
	<header class="header">
		<h1>
			<a href="accueil.html"> <img src="images/velo.jpeg" alt="Image"
				class="imagehome">
			</a>
		</h1>
		<div id="menuhome">
			<ul>
				<li><a href="accueil.html">Accueil</a></li>
				<li><a href="recherche.html">Recherche d'un vélo</a></li>
				<li><a href="connexion.jsp" id="current">Connexion</a></li>
				<li><a href="contact.html">Contacts</a></li>
			</ul>
		</div>
		<br />
	</header>

	<div id="DivDeconnecter" style="display:none">
		<a href="accueil.html">Déconnecter</a>
	</div>
	
	<br />
	<br />
	<br />

	<div id="divConnexion" align="center" >
		<form name="formConnexion" method="post" action="Connexion">
			<table id="tableConnexion">
				<tr>
					<td align="center">Pseudo:</td>
					<td><input type="text" name="pseudo" required="required" /></td>
				</tr>
				<tr>
					<td align="center">Mot de pass:</td>
					<td><input type="password" name="motDePass"
						required="required" /></td>
				</tr>
				<tr>
					<td colspan="2" align="right"><input type="submit"
						value="Log In" class="btnLogin"></td>
				</tr>
				<tr></tr>
				<tr>
					<td colspan="2" align="center" class="textIns">Pas encore inscrit? <a
						href="inscription.html"> S'inscrire</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
	
	<div id="divConnecteInfo" style="display:none">
		<h1>Vous avez deja connecte!</h1>
	</div>
	
</body>
</html>